//
//  subscribeCell.m
//  Discover
//
//  Created by GreatranLee on 28/10/14.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "subscribeCell.h"
#import "UIImageView+WebCache.h"
@implementation subscribeCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imgView];
        self.imgView.backgroundColor = [UIColor colorWithRed:0.1 green:0.6 blue:0.5 alpha:1];
        [self.imgView release];
        self.TitleLabel = [[UILabel alloc]init];
        self.TitleLabel.font = [UIFont fontWithName:@"Helvetica" size:14];
        self.TitleLabel.textColor = [UIColor blackColor];
        [self.imgView addSubview:self.TitleLabel];
        [self.TitleLabel release];
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];


//    [self.imgView setImageWithURL:[NSURL URLWithString:self.model.image]];
    self.imgView.frame = CGRectMake(0, 0, 106, 106);
    self.TitleLabel.frame = CGRectMake(0, 70, 106, 30);
}
- (void)dealloc
{
    [_TitleLabel release];
    [_imgView release];
    [super dealloc];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
